# -*- coding: utf-8 -*-

import tkFileDialog
import tkMessageBox
import sys

from xTkinter import *

class VueClient(Frame):
    def __init__(self,master):
        Frame.__init__(self,master)
        self.combo=xCombobox(self,width=20)
        self.combo.setLocation(10,20)
        self.combo.setListWidth(20)
        self.combo.setListHeight(2)
        self.combo.addItem("Mo")
        self.combo.addItem("Ha")
        self.combo.addItem("Med")
        self.combo.setValidator(self.choix)
        text1=xLabel(self,text="Employés")
        text1.setLocation(10,0)
        self.configure(width=400,height=350)
        text2=Label(self,text="Salaire").place(x=10,y=60 )
        self.entry = Entry(self,width=20,bg='#F7F2B2').place(x=10,y=80)
        text3=Label(self,text="Commission").place(x=150,y=60 )
        self.entry = Entry(self,width=20,bg='#F7F2B2').place(x=150,y=80)
        text3=Label(self,text="Salaire Total").place(x=300,y=60 )
        self.entry = Entry(self,width=20,bg='#F7F2B2').place(x=300,y=80)
        text4=Label(self,text="Impôt Fédéral").place(x=10,y=120 )
        self.entry = Entry(self,width=20,bg='#F7F2B2').place(x=120,y=120)
        text5=Label(self,text="Impôt Provincial").place(x=10,y=150 )
        self.entry = Entry(self,width=20,bg='#F7F2B2').place(x=120,y=150)
        text6=Label(self,text="RRQ").place(x=10,y=180 )
        self.entry = Entry(self,width=20,bg='#F7F2B2').place(x=120,y=180)
        text7=Label(self,text="RQAP").place(x=10,y=210 )
        self.entry = Entry(self,width=20,bg='#F7F2B2').place(x=120,y=210)
        text8=Label(self,text="Assurance Emploi").place(x=10,y=240 )
        self.entry = Entry(self,width=20,bg='#F7F2B2')
        self.Bouton=Button(self,text="Annuler",width=12).place(x=10,y=280)
        self.Bouton=Button(self,text="Ajouter",width=12)
        self.entry.place(x=120,y=240)
        self.pack()

    def choix(self):
        print self.combo.getText()
        print self.entry.get()
        pass
if __name__ == '__main__':
    root=Tk()
    root.geometry("450x400")
    root.title("PERP | Calcul Salaire")
    Client=VueClient(root)
    root.mainloop()